﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using ST.Buz.Base.Entity;

namespace ST.Buz.Base.Mapping
{
	public partial class Map_Sys_Log : IEntityTypeConfiguration<Sys_Log>
	{
		public void Configure(EntityTypeBuilder<Sys_Log> builder)
		{
			builder.Property(e => e.SrcUrl)
				.IsUnicode(false);

			builder.Property(e => e.LogManIP)
				.IsUnicode(false);

			builder.Property(e => e.LogTime)
				.HasDefaultValueSql("(getdate())")
				.ValueGeneratedNever();
		}
	}
}
